package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Entity
@Table(name = "T_SYS_USER_2_RIGHT_OP", schema = "oa", catalog = "")
public class User2RightOpEntity extends BaseEntity {
    private String userId;
    private String rightOpId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRightOpId() {
        return rightOpId;
    }

    public void setRightOpId(String rightOpId) {
        this.rightOpId = rightOpId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject json = new JSONObject();
        json.put("ID",this.getId());
        json.put("USER_ID",this.getUserId());
        json.put("RIGHT_OP_ID",this.getRightOpId());
        return json;
    }

    @Override
    public String getTableName() {
        return "T_SYS_USER_2_RIGHT_OP";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID","id");
        json.put("USER_ID","userId");
        json.put("RIGHT_OP_ID","rightOpId");
        return json;
    }
}
